<?php
/* The configurations for deps.create.php */
$tDir = dirname(__FILE__) . '/../templates';
$jsDir = dirname(__FILE__) . '/../templates';
$depsDir = dirname(__FILE__) . '/../templates/utils/_deps';
require_once dirname(__FILE__) . '/../includes/smarty.inc.php';
$left = $smarty->left_delimiter;
$right = $smarty->right_delimiter;

/* The configurations for db.setup.php */
$classesDir = dirname(__FILE__) . '/../db/classes';
$ormDir = dirname(__FILE__) . '/../db/_orm';
$jsDbDir = dirname(__FILE__) . '/../templates/utils/_db';
$incFile = "$ormDir/orm.inc.php";
$createFile = dirname(__FILE__) . "/../db/_create.php";

/* The configurations for dbc.setup.php */
$dbc_classesDir = dirname(__FILE__) . '/../ecommerce/db/classes';
$dbc_ormDir = dirname(__FILE__) . '/../ecommerce/db/_orm';
$dbc_jsDbDir = dirname(__FILE__) . '/../templates/utils/_dbe';
$dbc_incFile = "$dbc_ormDir/orm.inc.php";
$dbc_createFile = dirname(__FILE__) . "/../ecommerce/db/_create.php";

/* The configurations for meta.create.php */
$metaDataFile = dirname(__FILE__) . '/../metadata.php';
$constDir = dirname(__FILE__) . '/../templates/utils/_cons';

/* The configurations for refresh.remove.php */
$smartyDir = dirname(__FILE__) . '/../includes/smarty/template_c';
$tiny_mceDir = dirname(__FILE__) . '/../includes/tiny_mce/cache';

echo 'Creating dep files... ';
require_once dirname(__FILE__) . '/scripts/deps.create.php';

echo 'Setup database... ';
require_once dirname(__FILE__) . '/scripts/db.setup.php';

//echo 'Setup ecommerce database... ';
//require_once dirname(__FILE__) . '/scripts/dbc.setup.php';

echo 'Creating constant files... ';
require_once dirname(__FILE__) . '/scripts/const.create.php';

echo 'Removing cache... ';
require_once dirname(__FILE__) . '/scripts/cache.remove.php';
?>